package com.situ.crm.proxy;

// 在外界看来秘书就是代表董事长的，为了让秘书和董事长的行为保持一致，
// 让董事长和秘书实现同样一个接口
public class MiShu implements IQianZi{
	private DongShiZhang dongShiZhang;

	public MiShu(DongShiZhang dongShiZhang) {
		this.dongShiZhang = dongShiZhang;
	}

	@Override
	public void qianzi() {
		System.out.println("MiShu.qianzi() before");
		// 权限的判断
		dongShiZhang.qianzi();
		System.out.println("MiShu.qianzi() end");
	}

}
